<template>
	<view>
		设置页面
		<view @click="loginOut" v-if="vk.getVuex('$user.userInfo._id')"
			class="mx-auto text-center rounded-50r main-bg-color h-100r" style="width: 80%;">
			<text class="leading-96r text-45r font-bold" style="color: #fff;">退出登录</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				loginOut() {
					vk.userCenter.logout({
						success: (data) => {
							vk.setVuex('$user.userInfo', {});
							vk.navigateBack();
						}
					});
				}
			};
		}
	}
</script>

<style lang="scss">

</style>
